package com.ajie.service;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.HttpExchange;

/**
 * 微信小程序远程调用接口
 * @author: ajie
 * @createTime: 2024-08-17 14:16
 */
@HttpExchange(value = "https://api.weixin.qq.com", accept = "application/json", contentType = "application/json")
public interface MiniHttpService {

    /**
     * 微信小程序登陆接口
     * @param appid
     * @param secret
     * @param code
     * @return
     */
    @GetExchange("/sns/jscode2session?grant_type=authorization_code")
    String login(@RequestParam String appid, @RequestParam String secret, @RequestParam("js_code") String code);

}
